<template>
  <div  class="wrapper">
   <Anchor :labelList="labels" activeId="row-01" labelWidth="80">
      <div class="line" id="row-01">
        <InfoBase v-model="value"  />
      </div>
      <div class="line" id="row-02">
        <InfoWarrant v-model="value" />
      </div>
    </Anchor>
   <div class="dialogBottmView">
      <el-button @click="closeDialog">关 闭</el-button>
      <el-button @click="saveDialog" type="primary">保 存</el-button>
      <el-button @click="saveDialog" type="primary">生成临时账号</el-button>
      <el-button @click="saveDialog" type="primary">转经销商</el-button>
   </div>
  </div>
</template>

<script>
import { getDealerCompanyByCode } from '@/api/common/org/dealerCompany';
import { authority } from '@/utils/authMixin';
import { dictionary } from '@/utils/dictMixin';
import InfoBase from './infoBase'; //基本信息
import InfoWarrant from './infoWarrant'; //授权信息
export default {
   mixins: [authority, dictionary],
      components: {
        InfoBase,
        InfoWarrant
      },
  props:{
    value: {
      type: Object,
      required: true
    },
  },
  data() {
    return {
     labels: [
        { title: '基本信息', id: 'row-01' },
        { title: '授权信息', id: 'row-02' },
      ]
    };
  },
  methods: {
   //保存
    saveDialog() {
      this.$emit('close', { visible: false });
    },
    //取消操作
    closeDialog() {
      this.$emit('close', { visible: false });
    }
  },
};
</script>
<style scoped>
.wrapper {
  height: calc(100vh - 110px);
}
</style>